package com.mhc.suzuki.manager;

import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.EmergencyContactDO;
import com.mhc.suzuki.dal.query.EmergencyContactQuery;

import java.util.List;


/**
 * Manager for EmergencyContact.
 */
public interface EmergencyContactManager {
    /**
     * query count by query condition.
     */
    int countByQuery(EmergencyContactQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(EmergencyContactQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(EmergencyContactDO record);

    /**
     * insert selective.
     */
    long insertSelective(EmergencyContactDO record);

    /**
     * select by query condition.
     */
    List<EmergencyContactDO> selectByQuery(EmergencyContactQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<EmergencyContactDO> selectByQueryWithPage(EmergencyContactQuery query);

    /**
     * select by primary key.
     */
    EmergencyContactDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( EmergencyContactDO record,  EmergencyContactQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(EmergencyContactDO record, EmergencyContactQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(EmergencyContactDO record);
}